<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>015-操作属性.html</title>
</head>
<body>
	<input type="text" value="a" name="a">
	<input type="text" value="a" name="a">
	<input type="checkbox" checked>
</body>
<script src="js/jquery-1.12.4.js"></script>
<script>
	$(function(){
		/*
		console.log($('input').attr('name'));
		console.log($('input').eq(1).attr('name'));
		
		console.log($('input').prop("name"));
		console.log($('input').attr("value"));
		console.log($('input').eq(1).attr("value"));
		console.log($('input').prop("value"));
		console.log($('input').eq(2).attr('checked'));
		console.log($('input').eq(2).prop('checked'));
		*/
		// console.log($('input').attr("name","x1"));
		// console.log($('input').prop("name","x1"));
		// console.log($('input').attr("value","x1"));
		// console.log($('input').prop("value","x1"));
		// console.log($('input').removeAttr("name"));
		console.log($('input').removeProp("name"));
	})
</script>
</html>